package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TAuthorizationMapper;
import com.ruoyi.system.domain.TAuthorization;
import com.ruoyi.system.service.ITAuthorizationService;

/**
 * 车位授权Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-29
 */
@Service
public class TAuthorizationServiceImpl implements ITAuthorizationService 
{
    @Autowired
    private TAuthorizationMapper tAuthorizationMapper;

    /**
     * 查询车位授权
     * 
     * @param authid 车位授权主键
     * @return 车位授权
     */
    @Override
    public TAuthorization selectTAuthorizationByAuthid(Long authid)
    {
        return tAuthorizationMapper.selectTAuthorizationByAuthid(authid);
    }

    /**
     * 查询车位授权列表
     * 
     * @param tAuthorization 车位授权
     * @return 车位授权
     */
    @Override
    public List<TAuthorization> selectTAuthorizationList(TAuthorization tAuthorization)
    {
        return tAuthorizationMapper.selectTAuthorizationList(tAuthorization);
    }

    /**
     * 新增车位授权
     * 
     * @param tAuthorization 车位授权
     * @return 结果
     */
    @Override
    public int insertTAuthorization(TAuthorization tAuthorization)
    {
        return tAuthorizationMapper.insertTAuthorization(tAuthorization);
    }

    /**
     * 修改车位授权
     * 
     * @param tAuthorization 车位授权
     * @return 结果
     */
    @Override
    public int updateTAuthorization(TAuthorization tAuthorization)
    {
        return tAuthorizationMapper.updateTAuthorization(tAuthorization);
    }

    /**
     * 批量删除车位授权
     * 
     * @param authids 需要删除的车位授权主键
     * @return 结果
     */
    @Override
    public int deleteTAuthorizationByAuthids(Long[] authids)
    {
        return tAuthorizationMapper.deleteTAuthorizationByAuthids(authids);
    }

    /**
     * 删除车位授权信息
     * 
     * @param authid 车位授权主键
     * @return 结果
     */
    @Override
    public int deleteTAuthorizationByAuthid(Long authid)
    {
        return tAuthorizationMapper.deleteTAuthorizationByAuthid(authid);
    }
}
